﻿using System.Collections.Generic;
using System.Threading.Tasks;
using NJ.Dto.RoleMenu;

namespace NJ.Service.Menu
{
    public interface IMenuService
    {
        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <returns></returns>
        Task<List<MenuDto>> GetMenusAsync();
        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<MenuDto> GetMenuAsync(int Id);
        /// <summary>
        /// 获取父级菜单
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<List<MenuDto>> GetParentMenusAsync(int Id);
        /// <summary>
        /// 保存菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<int> SaveMenuAsync(CreateOrUpdateMenuDto input);
        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleMenuAsync(int Id);
    }
}
